<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="" method="post" id="cp-form">

            <div class="layui-form-item">
                <label class="layui-form-label">应用名称 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="steward[title]"  value="{$app.title|default=''}" required lay-verify="required" placeholder="网站名称" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">允许访问 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="radio" name="steward[status]" class="layui-input" title="是" value="1" {if isset($app.status) and $app.status eq 1}checked{/if}>
                    <input type="radio" name="steward[status]" class="layui-input" title="否" value="0" {if isset($app.status) and $app.status eq 0}checked{/if}>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden" name="id" value="{$app.name|default=''}">
                    <input type="hidden" name="steward[uninstall]" value="{$app.uninstall|default=''}">
                    <input type="hidden" name="steward[is_action]" value="{$app.is_action|default=''}">
                    <input type="hidden" name="steward[name]" value="{$app.name|default=''}">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                    <a href="javascript:history.go(-1);" class="layui-btn layui-btn-primary">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
